﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TT.HelpInfo;
using SQLHelper;
using Bill.BasDLL.dao;
using Bill.BasDLL.ety;
using System.Data;

namespace Bill.BasDLL.biz
{
    public class bizBillProject : basClassDeclare
    {
        daoOraBillProject daOraBillProject;

        public bizBillProject(TT.Module.sysLogin.etyBaeSystemParamter basSysPara)
        {
            daOraBillProject = new daoOraBillProject(basSysPara);
        }

        public bool Insert(etyBillProject eyTrk)
        {
            return daOraBillProject.Insert(eyTrk);
        }

        public bool Update(etyBillProject eyTrk)
        {
            return daOraBillProject.Update(eyTrk);
        }

        public bool Delete(etyBillProject eyTrk)
        {
            return daOraBillProject.Delete(eyTrk);
        }

        public IList<etyBillProject> GetBillProject()
        {
            DataTable dt = daOraBillProject.GetBillProject();
            IList<etyBillProject> ilRusult = TT.Common.Converts.ConvertToIList<etyBillProject>(dt);
            return ilRusult;
        }
    }
}
